<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="tag.jsp" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head>
    <link rel="icon" href="${ctx}/static/plugins/bootstrap-3.3.0/img/favicon.ico">
    <title>商城高并发抢购-商品页面</title>
    <%@include file="head.jsp" %>
</head>
<body>

<form action="${ctx}/admin/update" method="post">
    <table align="center" border="0">
    <!--当emp不等于空时，发送put请求-->
    <input id="id" name="id" value="${detail.id}" type="hidden"/>
    <div class="form-group">
        <label>商品名称</label>
        <input type="text" class="form-control" placeholder="请输入商品名称" value="${detail.itemName}" readonly>
    </div>
    <div class="form-group">
        <label>剩余数量：</label>
        <input name="total" type="text" class="form-control" placeholder="请输入数量" value="${detail.total}" required="">
    </div>
    <div class="form-group">
        <label>开始时间：</label>
        <input name="start" type="text" class="form-control Wdate" placeholder="请输入开始时间" value="<fmt:formatDate value="${detail.startTime}" pattern='yyyy-MM-dd HH:mm:ss'/>" required="">
    </div>

    <div class="form-group">
        <label>结束时间：</label>
        <input name="end" type="text" class="form-control Wdate" placeholder="请输入结束时间" value="<fmt:formatDate value="${detail.endTime}" pattern="yyyy-MM-dd HH:mm:ss" />" required="">
        <%--"<fmt:formatDate value="${item.endTime}" pattern='yyyy-MM-dd HH:mm:ss'/>"--%>
    </div>

    <button type="submit" class="btn btn-primary">修改</button>
        <a href="${ctx}/admin/delete/${detail.id}"  onClick="return confirm('确定删除?');"  class="btn btn-danger deleteBtn" >删除</a>
    </table>
</form>


</body>
<script src="${ctx}/static/plugins/jquery.js"></script>
<script src="${ctx}/static/plugins/bootstrap-3.3.0/js/bootstrap.min.js"></script>
<script src="${ctx}/static/plugins/jquery.cookie.min.js"></script>
<script src="${ctx}/static/plugins/jquery.countdown.min.js"></script>

<%--<script src="${ctx}/static/script/kill.js"></script>--%>
<link rel="stylesheet" href="${ctx}/static/css/detail.css" type="text/css">
</html>
















